<template>
    <div>
        路由组件3
    </div>
</template>

<script>
export default {
  mounted() {
    // console.log(this.$route.params)
  },
  beforeRouteEnter(to, from, next) {
    // ...
    console.log(to);
    console.log(from);
    console.log("路由导航被确认时调用");
    next();
  },
  beforeRouteUpdate(to, from, next) {
    console.log(to);
    console.log(from);
    console.log("路由导航被复用时调用");
    next();
  },
  beforeRouteLeave(to, from, next) {
    console.log(to);
    console.log(from);
    console.log("路由导航离开时调用");
    next();
  }
};
</script>

<style scoped>
</style>